package com.li.general.buttons
{
import flash.events.MouseEvent;
import flash.text.TextField;

public class LinkButton extends Button
{
    // Declared in Flash.
    public var label:TextField;

    public var overColor:uint = 0xE8CE08;
    public var outColor:uint = 0xFD0C43;

    public function LinkButton()
    {
        super();

        label.selectable = false;
        hitMouseOutHandler(null);
    }

    override protected function hitMouseOverHandler(evt:MouseEvent):void
    {
        label.textColor = overColor;
    }

    override protected function hitMouseOutHandler(evt:MouseEvent):void
    {
        label.textColor = outColor;
    }
}
}